


import { dataDispose } from '../../assets/comFun'
//导航栏icon
import { DatabaseOutlined } from "@ant-design/icons"
//公告列表
import NoticeList from './Notice/NoticeList'
//log列表
import LogList from './Log/LogList'
//菜品维护
import SetMealList from './SetMeal/SetMealList';
//小程序账号
import AppletAccountNumber from './AppletAccountNumber';

//列表
import AddMealList from './AddMeal/AddMealList'
//echarts
import AddMealEcharts from './AddMeal/AddMealEcharts'

const enumLeftAddMeal = [
    {
        key: 'notice',
        meta: {
            title: "公告管理",
            icon: <DatabaseOutlined />,
        },
        authority: 'BCGL_GGGL',
        path: "/addMeal/noticeList",
        component: NoticeList,
    },
    {
        key: 'Log',
        meta: {
            title: "log设置",
            icon: <DatabaseOutlined />,
        },
        authority: 'BCGL_LOGO',
        path: "/addMeal/logList",
        component: LogList,
    },
    {
        key: 'setMeal',
        meta: {
            title: "菜品维护",
            icon: <DatabaseOutlined />,
        },
        authority: 'BCGL_CPWH',
        path: "/addMeal/setMealList",
        component: SetMealList,
    },

    {
        key: 'addMeal',
        meta: {
            title: "报餐统计",
            icon: <DatabaseOutlined />,
        },
        authority: 'BCGL_BCTJ',
        path: "/addMeal/echarts",
        component: AddMealEcharts,
        page: [
            {
                key: 'addMealEcharts',
                meta: {
                    title: "报餐统计概况",
                    icon: <DatabaseOutlined />,
                },
                authority: 'BCGL_BCTJGL',
                path: "/addMeal/echarts",
                component: AddMealEcharts,
            },
            {
                key: 'addMealList',
                meta: {
                    title: "报餐统计列表",
                    icon: <DatabaseOutlined />,
                },
                authority: 'BCGL_BCTJLB',
                path: "/addMeal/list",
                component: AddMealList,
            }
        ],
    },
    {
        key: 'personnelManagementApletAccountNumber',
        meta: {
            title: "小程序账号",
            icon: <DatabaseOutlined />,
        },
        authority: 'UPD_MOBILE',
        path: "/personnelManagement/appletAccountNumber",
        component: AppletAccountNumber,
    },

]

//侧边栏数据转成路由
let enumLeftAddMealRouter = dataDispose(enumLeftAddMeal);

const enumLeftAddMealRouterPage = [
    ...enumLeftAddMealRouter
]

export {
    enumLeftAddMeal,
    enumLeftAddMealRouterPage
}
